package com.example.demo.dao;

import com.example.demo.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author Keyon
 * @Date 2019/11/9 16:06
 * @Desc
 */
@Mapper
@Component
public interface UserDao {

    List<User> getAllUser();

    User getUserById(long id);

    void updateUserById(@Param("user") User user);

    User getUserByUserName(String username);

}
